import { compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import login from './login.jsx';
import * as actionsCreaters from '../actions';
import * as globalActionCreaters from 'shared/reducers/actions';

const mapStateToProps = state => ({
  system: state.__system__,
  loginStore: state.login,
});

const mapDispatchToProps = { ...actionsCreaters, ...globalActionCreaters};

// login.fetchData = () => [];

export default compose(
  connect(mapStateToProps, mapDispatchToProps)
)(withRouter(login));
